home *** CD-ROM | disk | FTP | other *** search
- 10 ifpeek(828)<>160thenload"msp-sort",8,1
- 20 dimb$(2000):x=-1:so=0
- 30 k=53280:pokek,.:pokek+1,.:e=peek(186):forl=1to9:readda$(l):next:goto300
- 40 fa=int(rnd(1)*15)+1:iffa=0then40
- 50 iffa=f1then40
- 60 f1=fa:return
- 70 print"[147]keine daten vorhanden!":gosub240:goto310
- 80 print"[147]zum scratchen einer datei 'l' eingeben, dann die kennziffer der datei!"
- 90 print" return = menue "
- 100 c$="":input"kennziffer $[157][157][157]";c$:ifc$="$"thengosub140:goto100
- 110 ifc$="l"thenle=1:goto100
- 120 ifle=1thenle=0:d$="datei / "+c$+".dat":open15,e,15,"s:"+d$:close15:goto100
- 130 return
- 140 ife<8thene=8
- 150 print"[147]":open1,e,0,"$":poke781,1:sys65478:getaa$,aa$:ee$=chr$(0)
- 160 getaa$,aa$,hh$,ll$:ifstthensys65484:close1:goto200
- 170 printasc(hh$+ee$)+256*asc(ll$+ee$);
- 180 getaa$,bb$:ifaa$thenprintaa$bb$;:goto180
- 190 printaa$:goto160
- 200 gosub240:return
- 210 datadaten eingeben,daten ausgeben,daten drucken,daten speichern,daten laden
- 220 datadaten sortieren,daten loeschen,daten aendern,ende
- 230 print"loeschen = return"
- 240 geta$:ifa$=""then240
- 250 return
- 260 open15,e,15
- 270 input#15,aa,bb$,cc,dd:ifaa<>0thenprint" diskfehler ":goto290
- 280 return
- 290 print,aa;bb$;cc;dd:gosub240:close2:close15:goto280
- 300 sp=1
- 310 poke53265,11:print"[147] dateiprogramm"
- 315 iflo=1thenlo=0:poke53265,27:gosub1200:goto310
- 320 printtab(17)"[158][175][175][175][175][175][175][175]":printtab(17)" menue [153]"
- 330 forl=1to9:gosub40:poke646,fa:print""tab(9)l;" = ";da$(l):next:print"[155]":poke53265,27
- 340 gosub240:a=val(a$):ifa<1ora>9then340
- 350 onagoto360,460,460,660,760,840,880,960,860
- 360 print"[147] daten-eingabe / return = menue":print" ^ = vorher. begriff aendern":x=x+1
- 370 ifx>1999thenprint"datei voll!":x=x-1:gosub240:goto310
- 375 printtab(34)"[158]00[146][155][145]"
- 380 b$(x)="":input" begriff ";b$(x)
- 390 ifb$(x)=""thenx=x-1:goto310
- 400 ifb$(x)="^"thenifx>0thenx=x-1:print"[145][145][145]":goto380
- 410 ifx=0then450
- 415 b1$=left$(b$(x),4)
- 420 fory=0tox-1
- 430 ifb1$=left$(b$(y),4)thenprint""b$(y):gosub230:ifa$=chr$(13)thenz=1:y=x-1
- 440 next:ifz=1thenz=0:goto380
- 450 x=x+1:sp=0:so=0:goto370
- 460 ifx<0then70
- 470 c=3:ifa=3thenc=4:goto580
- 480 print"[147]suchen ? [space = nein [146]]":gosub240:ifa$=" "then570
- 481 print"bestimmte nummer ? [space = nein [146]]":gosub240:ifa$=" "then490
- 482 an=0:su$="":input"nummer 01[157][157][157][157]";su$
- 483 ifsu$=""then310
- 484 fori=0tox:ifsu$=right$(b$(i),len(su$))thenprint""b$(i):an=an+1
- 485 ifan>0thenifan/12=int(an/12)thenprinttab(33)"[145][145]taste[146]":gosub240:print"[147]":an=0
- 486 next:printtab(33)"taste[146]":gosub240:print"[147]":goto482
- 490 print"[147]return = menue / * = alle begriffe"
- 500 su$="":input"suchbegriff a[157][157][157]";su$
- 510 ifsu$=""then310
- 520 ifsu$="*"then570
- 530 ifso=1thengosub1040:goto490
- 540 ifasc(su$)<48orasc(su$)>90thenprint"[145][145][145]":goto500
- 550 fori=0tox:ifsu$=left$(b$(i),len(su$))thenprint""b$(i):gosub240
- 560 next:goto490
- 570 print"[147] f1/f3 = 2 seiten weiter/zurueck [146]":print" space = weiter":gosub240:print"[147]"
- 580 open1,c:ifc=3thenforb=0tox:a$=""
- 585 ifc=4thenforb=0toxstep2:a$=""
- 590 ifb>0thenifc=3thenifb/23=int(b/23)thengosub240:print"[147]":ifa$="e"thenb=x:print"taste!":goto640
- 600 ifc=3thenifa$=chr$(133)thenifb<(x-23)thenb=b+23:goto630
- 610 ifc=3thenifa$=chr$(134)thenifb>69thenb=b-69:goto630
- 620 ifb>0thenifc=4thenifb/124=int(b/124)thenford=1to10:print#1:next
- 630 ifc=3thenprint#1,b$(b)
- 635 ifc=4thenprint#1,b$(b);tab(40-len(b$(b)))b$(b+1)
- 640 next:print#1:close1:ifc=3thengosub240:goto310
- 650 goto340
- 660 ifx<0then70
- 670 gosub80:ifc$=""then310
- 680 c=val(c$):ifc<1orc>999then670
- 690 d$="datei / "+c$+".dat":ife<8thene=8
- 700 ifh=1thenopen15,e,15,"s:"+d$:close15
- 710 open2,e,2,d$+",s,w":gosub260:ifaa<>0then310
- 720 print"[147]daten gespeichert !"
- 730 forf=0tox:print"";f:print#2,b$(f):gosub270:ifaa<>0thenf=x
- 740 next:close2:close15:sp=1:ifh=1thenh=0:goto860
- 750 goto310
- 760 gosub80:ifc$=""then310
- 770 c=val(c$):ifc>999then760
- 780 d$="datei / "+c$+".dat":ife<8thene=8
- 790 open2,e,2,d$+",s,r":xx=x:x=x+1:gosub260:ifaa<>0thenx=xx:goto310
- 800 print"[147]daten geladen !":xy=1
- 810 ifx<2000thenprint"";xy:input#2,b$(x):ifst<>64thenx=x+1:xy=xy+1:goto810
- 820 ifx=2000thenx=x-1:print"datei voll!"
- 830 close2:close15:gosub240:goto310
- 840 ifx<0then70
- 850 print"[147] daten werden sortiert !":b$(x+1)="":sys828:sp=0:so=1:goto310
- 860 ifx=>0thenifsp=0thenh=1:c$="0":goto690
- 870 print"[147] neustart ohne datenverlust mit":print"goto310":print"[145][145][145][145]":end
- 880 ifx<0then70
- 890 print"[147]bestimmter datensatz?":gosub240:ifa$="j"then1300
- 891 print"[147]f8 = begriff loeschen / space = weiter f1 = 20 weiter / e = menue"
- 900 fori=0tox:print""b$(i):a$=""
- 910 gosub240:ifa$<>" "anda$<>chr$(140)anda$<>"e"anda$<>chr$(133)then910
- 920 ifa$=chr$(140)thenb$(i)="zzzzz":sp=0:lo=1
- 930 ifa$=chr$(133)thenifi<(x-21)theni=i+20
- 940 ifa$="e"theni=x
- 950 next:iflo=1then850
- 955 goto310
- 960 ifx<0then70
- 970 print"[147]bestimmter datensatz?":gosub240:ifa$="j"then1400
- 971 print"[147]f8 = begriff aendern / space = weiter f1 = 20 weiter / e = menue"
- 980 fori=0tox:print""b$(i):a$=""
- 990 gosub240:ifa$<>" "anda$<>chr$(140)anda$<>"e"anda$<>chr$(133)then990
- 1000 ifa$=chr$(140)thenne$="":print" "b$(i):input"[145]";ne$:ifne$<>""thenb$(i)=ne$:sp=0
- 1010 ifa$=chr$(133)thenifi<(x-21)theni=i+20
- 1020 ifa$="e"theni=x
- 1030 next:goto310
- 1040 print" +[146] = naechster begriff":print" -[146] = vorheriger begriff"
- 1050 ifsu$=b$(0)then1140
- 1060 su=int(log(x)/log(2)):ss=2^su-1
- 1070 fori=suto0step-1
- 1080 ifb$(ss)<su$thenss=ss+2^i
- 1090 ifb$(ss)>su$thenss=ss-2^i
- 1100 ifss<0thenss=0
- 1110 ifss>x-1thenss=x-1
- 1120 nexti
- 1130 ifb$(ss)<su$thenss=ss+1
- 1140 print""b$(ss):gosub240
- 1150 ifa$="+"thenss=ss+1:ifss<=xthen1140
- 1155 ifa$="+"thenifss>xthenss=0:goto1140
- 1160 ifa$="-"thenss=ss-1:ifss=>0then1140
- 1165 ifss<0thenss=x:goto1140
- 1170 return
- 1200 print"moment!":x1=0:fori=0tox:ifb$(i)="zzzzz"thenb$(i)="":x1=x1+1
- 1210 next
- 1220 x=x-x1:return
- 1300 ds$="":input"datensatz ";ds$:ifds$=""theniflo=1then850
- 1301 ifds$=""theniflo=0then310
- 1305 print"f8 = begriff loeschen / space = weiter e = menue"
- 1310 fori=0tox:ifds$=left$(b$(i),len(ds$))thenprint""b$(i)" ?":gosub1500
- 1350 next:goto1300
- 1400 ds$="":input"datensatz ";ds$:ifds$=""then310
- 1401 print"f8 = begriff aendern / space = weiter e = menue"
- 1410 fori=0tox:ifds$=left$(b$(i),len(ds$))thenprint" "b$(i):gosub1600
- 1450 next:goto1400
- 1500 gosub240:ifa$<>" "anda$<>chr$(140)anda$<>"e"then1500
- 1510 ifa$=chr$(140)thenb$(i)="zzzzz":sp=0:lo=1:return
- 1520 ifa$="e"theni=x
- 1530 return
- 1600 gosub240:ifa$<>" "anda$<>chr$(140)anda$<>"e"then1600
- 1610 ifa$=chr$(140)thenne$="":input"[145]";ne$:ifne$<>""thenb$(i)=ne$:sp=0:return
- 1620 ifa$="e"theni=x
- 1630 return
-